package com.qf.cx.simplenms.link.rai.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Structure;

public class TagMaskInfo extends Structure {
	
	public int isUsed;
	public int memoryType;
	public int matchType;
	public short pointer;
	public short dataMaskLen;
	public byte[] mask = new byte[RaiLimit.MAX_MASK_DATA_LEN];
	public byte[] data = new byte[RaiLimit.MAX_MASK_DATA_LEN];	
	
	public static class ByValue  extends TagMaskInfo implements Structure.ByValue{ }		
	public static class ByReference extends TagMaskInfo implements Structure.ByReference{ }
	
    @Override  
    protected List<String> getFieldOrder() {  
        List<String> a = new ArrayList<String>();  
        a.add("isUsed");   
        a.add("memoryType");  
        a.add("matchType");
        a.add("pointer");   
        a.add("dataMaskLen");           
        a.add("mask"); 
        a.add("data");
        return a;  
    }

	@Override
	public String toString() {
		return "TagMaskInfo [isUsed=" + isUsed + ", memoryType=" + memoryType + ", matchType=" + matchType + ", pointer=" + pointer
				+ ", dataMaskLen=" + dataMaskLen + ", mask=" + Arrays.toString(mask) + ", data=" + Arrays.toString(data)
				+ "]";
	}  	
    
    

}
